package vinnichenko.lab3;

import java.io.*;
import java.util.*;

import javax.servlet.jsp.tagext.*;

/**Class that defines the variable names and types created by
 * custom tag handler EmployeesListTag.
 * @author Igor Vinnichenko
 * @version 1.0
 */
public class EmployeesListTagExtraInfo extends TagExtraInfo{
   /**method that returns information about the variables 
    * EmployeesListTag creates for use in a JSP*/
    public VariableInfo [] getVariableInfo( TagData tagData ){
        VariableInfo empno  = new VariableInfo( "empno", "Integer", true, VariableInfo.NESTED );
        VariableInfo mgr    = new VariableInfo( "mgr",   "Integer", true, VariableInfo.NESTED );
        VariableInfo deptno = new VariableInfo( "deptno","Integer", true, VariableInfo.NESTED );
        VariableInfo ename  = new VariableInfo( "ename", "String",  true, VariableInfo.NESTED );
        VariableInfo job    = new VariableInfo( "job",   "String",  true, VariableInfo.NESTED );
        VariableInfo sal    = new VariableInfo( "sal",   "Double",  true, VariableInfo.NESTED );
        VariableInfo comm   = new VariableInfo( "comm",  "Double",  true, VariableInfo.NESTED );
        VariableInfo hiredate = new VariableInfo( "hiredate",   "Date",  true, VariableInfo.NESTED );
        VariableInfo level = new VariableInfo( "level",   "Integer",  true, VariableInfo.NESTED );
        VariableInfo mgrname = new VariableInfo( "mgrname",   "String",  true, VariableInfo.NESTED );
        VariableInfo deptname = new VariableInfo( "deptname",   "String",  true, VariableInfo.NESTED );

      
        VariableInfo varableInfo [] = 
            { empno, mgr, deptno, ename, job, sal, comm, hiredate, level, mgrname, deptname };
      
        return varableInfo;
    }
}